package com.itheima.wms.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.wms.common.service.ICrudService;
import com.itheima.wms.dto.LocationDTO;
import com.itheima.wms.entity.LocationEntity;
import com.itheima.wms.vo.LocationDetailVO;

import java.util.List;
import java.util.Map;

public interface LocationService extends ICrudService<LocationEntity> {
    /**
     * 更新库位
     * @param locationDTO
     * @return
     */
    LocationEntity update(LocationDTO locationDTO);

    /**
     * 分页查询详细
     * @param page
     * @param map
     * @return
     */
    IPage<LocationDetailVO> pageDetail(Page<LocationDetailVO> page, Map map);

    /**
     * 查询库位信息
     * @param map
     * @return
     */
    List<LocationDetailVO> listDetail(Map map);
}
